package demo1;

public class java04 {
     public static void main(String[] arg){
    	 for(int i=1;i<=100000;i++){
    		 if (i<100 && i%10 == i/10){
    			 System.out.println(i);
    		 }else if(i>100 & i<1000 && i%10 == i/100){
    			 System.out.println(i);
    		 }else if(i>1000 & i<10000 && i/1000 == i%10 && (i/100)%10 == (i/10)%10){
    			 System.out.println(i);
    		 }else if(i>10000 & i/10000 == i%10 && (i/1000)%10 == (i/10)%10){
    			 System.out.println(i);
    		 }
    	 }
    	 
    	 
     }
}
